Skip to content

fix: check Slack response bodies - #4280

Open
med-dz wants to merge 1 commit into
deployphp:masterfrom
med-dz:fix/slack-response
Open

med-dz wants to merge 1 commit into
deployphp:masterfrom
med-dz:fix/slack-response

Conversation

@med-dz

@med-dz med-dz commented Nov 27, 2026

Copy link
Copy Markdown

Httpie::send() returns an HttpResponse in v8, but checkSlackAnswer() compares it directly with 'invalid_token' using ===. The comparison does not invoke __toString(), so invalid-token responses no longer trigger the existing warning.

Cast the response to a string before comparing it. This restores the warning across all Slack notification tasks while retaining support for string responses.

Adds regression tests for successful and invalid-token responses as both objects and strings.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant